window.addEventListener('DOMContentLoaded', event => {
    // Simple-DataTables
    // https://github.com/fiduswriter/Simple-DataTables/wiki

    const datatablesSimple = document.getElementById('datatablesSimple');
    if (datatablesSimple) {
        new simpleDatatables.DataTable("#datatablesSimple", {
        labels: {
            placeholder: "搜索…",
            perPage: "条每页",
            noRows: "没有找到任何记录",
            noResults: "没有找到任何记录",
            info: "显示第 {start} 到 {end} 条，共 {rows} 条"
        }
        });
    }
});
